var ExpenseTracker = {}
ExpenseTracker = {
    disableExpenseForm: function() {
        Element.show('form-indicator');
        Form.disable('expense-form');
    },
    enableExpenseForm: function(form) {
        Element.hide('form-indicator');
        Form.enable('expense-form');
    }
}

//Ajax.Responders.register({
//    onCreate: function() {
//        if (Ajax.activeRequestCount > 0)
//            Element.show('form-indicator');
//    },
//    onComplete: function() {
//        if (Ajax.activeRequestCount == 0)
//            Element.hide('form-indicator');
//    }
//})